//
//  DataSheet.h
//  waterland
//
//  Created by ericyang on 2011/5/16.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface DataSheet : NSObject
{
    NSString* sheetName;
    
    NSInteger columnCount;
    NSMutableArray* columnNameList;
    NSMutableArray* rowDataList;
    NSInteger rowCount;
}

#pragma mark -
#pragma 表單屬性

- (void)setSheetName:(NSString*)name;
- (NSString*)getSheetName;

#pragma mark -
#pragma 欄位屬性

- (NSInteger)getColumnCount;

- (void)addColumnWithColumnName:(NSString*)name;
- (NSString*)getColumnWithIndex:(NSInteger)index;

#pragma mark -
#pragma 資料欄位

- (NSInteger)createRow;
- (void)addRowDataWithRowIndex:(NSInteger)rowIndex rowData:(NSString*)rowData;
- (NSString*)getRowDataByColumnIndexWithRowIndex:(NSInteger)rowIndex columnIndex:(NSInteger)columnIndex;
- (NSString*)getRowDataByColumnNameWithRowIndex:(NSInteger)rowIndex columnName:(NSString*)columnName;
- (NSInteger)getRowCount;

@end
